package com.luych.toolbox.common.enums;

import java.util.function.Function;

public enum  CaseType {
    UPPER_CASE("转为大写", String::toUpperCase),
    LOWER_CASE("转为小写", String::toLowerCase),
    UNCHANGE("保持不变", String::toString);

    private final String value;
    private final Function<String, String> convert;

    CaseType(String value, Function<String, String> convert) {
        this.value = value;
        this.convert = convert;
    }

    public String getValue() {
        return value;
    }

    public Function<String, String> getConvert() {
        return convert;
    }
}
